package com.centaline.androidsalesblog.api.sale;

import com.centaline.androidsalesblog.api.SaleApi;
import com.centaline.androidsalesblog.model.responseobject.StaffRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 经纪人
 * Created by guilin on 16/3/4.
 */
public class StaffApi extends SaleApi<StaffRo> {

    private String staffNo;
    private String postId;

    public StaffApi(Class<?> tag, Class<StaffRo> aClass, IResponseListener<StaffRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setStaffNo(String staffNo) {
        this.staffNo = staffNo;
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    @Override
    protected void setParams() {
        putParams("staffNo", staffNo);
        putStringParams("postId", postId);
    }

    @Override
    protected String getPath() {
        return "Staff";
    }
}
